package com.justgame.project.service.system.feign;

import com.justgame.project.service.api.entity.SysUserInfo;
import com.justgame.project.service.api.feign.ISysUserInfoClient;
import com.justgame.project.service.system.mapper.SysUserInfoMapper;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * SystemClient 微服务接口实现
 * @author ZhouWeiBo
 * @create 2022/4/11
 */
@RestController
@AllArgsConstructor
public class SysUserInfoClient implements ISysUserInfoClient {

    private final SysUserInfoMapper sysUserInfoMapper;

    @Override
    @GetMapping(GET_USER_INFO_BY_ID)
    public SysUserInfo getUserInfoById(@RequestParam("id") String id) {
        return sysUserInfoMapper.selectUserInfoById(id);
    }
}
